package com.frxuexi.base.net

import com.blankj.utilcode.util.SPUtils
import okhttp3.Interceptor
import okhttp3.Response

class TokenInterceptor:Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val request = chain.request().newBuilder()
            .addHeader("token", SPUtils.getInstance().getString("token", "").toString())
            .build()
        return chain.proceed(request)
    }
}